package com.heima.behavior.controller;

import com.heima.behavior.dto.ReadBehaviorDto;
import com.heima.behavior.service.IApReadBehaviorService;
import com.heima.common.dto.ResponseResult;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * APP阅读行为表 前端控制器
 * </p>
 *
 * @author wsj
 * @since 2022-03-17
 */
@RestController
@RequestMapping("/api/v1/read_behavior")
@Api(tags = "APP阅读行为表接口")
public class ApReadBehaviorController{

    @Autowired
    private IApReadBehaviorService apReadBehaviorService;

    /**
     * 阅读行为
     * @param dto
     * @return
     */
    @PostMapping
    public ResponseResult readBehavior(@RequestBody ReadBehaviorDto dto) {
        return apReadBehaviorService.readBehavior(dto);
    }

}
